package com.one2many;

/**
 * Books entity. @author MyEclipse Persistence Tools
 */

public class Books implements java.io.Serializable {

	// Fields

	private Integer bookId;
	private User user;
	private String author;
	private String name;

	// Constructors

	/** default constructor */
	public Books() {
	}

	/** minimal constructor */
	public Books(Integer bookId) {
		this.bookId = bookId;
	}
	
	public Books(Integer bookId, String author, String name) {
		this.bookId = bookId;
		this.author = author;
		this.name = name;
	}

	/** full constructor */
	public Books(Integer bookId, User user, String author, String name) {
		this.bookId = bookId;
		this.user = user;
		this.author = author;
		this.name = name;
	}

	// Property accessors

	public Integer getBookId() {
		return this.bookId;
	}

	public void setBookId(Integer bookId) {
		this.bookId = bookId;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getAuthor() {
		return this.author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

}